const baseURL = 'http://172.17.26.211:3313'
const http = (option) => {
	return new Promise((resolve, reject) => {
		// let token = uni.getStorageSync('token') || '';
		uni.request({
			url:baseURL + option.url,
			method: option.method || 'get',
			// header:{
			// 	  token
			// },
			data: option.data || {},
			success:function(res) {
				resolve(res);
			},
			fail:function(err){
				reject(err);
			}
		})
	})
}
export default http;